<div class='span12'>
	<h1><?php echo $this->Html->link($page_title, '/'); ?></h1>
	<div class="btn-group">
	  <?php echo $this->Html->link('Nueva Acción', array('controller'=>'stocks', 'action'=>'add'),array('class'=>'btn btn-success'));?>
	  <span class="divider">|</span>
	  <a href="#" id='edit_bt' class="btn btn-success">Editar</a>
	  <span class="divider">/</span>
	  <a href="#" id='delete_bt' class="btn btn-success">Eliminar</a>
	</div>
	<hr>
	<table class="table table-bordered">
		<thead>
			<tr>
				<th></th>
				<th>Id</th>
				<th>Nombre</th>
				<th>Code</th>
				<th>Descripción</th>
				<th>Creado</th>
				<th>Estado</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach($stocks as $a_stock):?>
				<tr>
					<td><input type='checkbox' name='newsletter' value='<?php echo $a_stock['Stocks']['id']?>' > </td>
					<td><?php echo $a_stock['Stocks']['id']?></td>
					<td><?php echo $this->Html->link($a_stock['Stocks']['name'], array('controller'=>'stocks', 'action'=>'historical',$a_stock['Stocks']['code']));?></td>
					<td><?php echo $a_stock['Stocks']['code']?></td>
					<td><?php echo $a_stock['Stocks']['description']?></td>
					<td><?php echo $a_stock['Stocks']['created']?></td>
					<td><?php echo $a_stock['Stocks']['status']?></td>
				</tr>
			<?php endforeach;?>
		</tbody>
	</table>
	<div class="pagination pagination-right ">
		<ul>
		    <?php
		        echo $this->Paginator->prev(__('prev'), array('tag' => 'li'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
		        echo $this->Paginator->numbers(array('separator' => '','currentTag' => 'a', 'currentClass' => 'active','tag' => 'li','first' => 1));
		        echo $this->Paginator->next(__('next'), array('tag' => 'li','currentClass' => 'disabled'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'))
		    ?>
		</ul>
	</div>
</div>	
<br>
<br>
<br>
<br>
<br>
<br>